export default {  //存储用户的全局信息，能使每个页面都能读取到用户信息
    state: {
        is_record: false,
        a_steps: "",
        b_steps: "",
        record_loser: "",
    },
    getters: {
    },
    mutations: {  // 修改数据的  同步函数,创建链接时存储数据
        updateIsRecord(state, is_record) {
            state.is_record = is_record;
        },
        updateSteps(state, data) {
            state.a_steps = data.a_steps;
            state.b_steps = data.b_steps;
        },
        updateRecordLoser(state, loser) {
            state.record_loser = loser;
        }
    },
    actions: {  // 修改state的函数  异步函数
    },
    modules: {
    }
}